package geeks.web;

import java.util.Collection;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import junit.framework.Assert;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;



import geeks.excepcion.DAOExcepcion;
import geeks.modelo.Pago;
import geeks.negocio.GestionPago;

@Controller
public class CobranzaController {
	
	//
	@RequestMapping(value = "/ModuloCobranza", method = RequestMethod.GET)	
	protected ModelAndView ModuloCobranza(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
    
		//System.out.println("Cargando ...");
	
		GestionPago negocio = new GestionPago();
		
		Collection<Pago> listado=null;
		

		listado = negocio.listar();
		return new ModelAndView("ModuloCobranza","REPORTE",listado);

	}
	/*
    @RequestMapping(value = "/MantCategoria", method = RequestMethod.GET)
protected ModelAndView MantCategoria(HttpServletRequest request,
		HttpServletResponse response) throws Exception {

	//Collection<Categoria> lista = null;
	//lista = categoriaService.listarCategorias();
            
            CategoriaPlanNegocio negocio = new CategoriaPlanNegocio();
        //CategoriaDomain domain =  new CategoriaDomain();
        
            Collection<CategoriaDomain> domains = null;
            domains= negocio.listarCategorias();
            //domains = negocio.buscarCategoriasPorPadre(2);
	return new ModelAndView("MantCategoria", "CATEGORIAS", domains);
	}
	*/
	
}